/**
* @author Dror
*
* email: gumjum.o.o@gmail.com
*
*/
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JFrame;
import com.fish.World;
import com.gui.MainPanel;
public class Demo {
public static String VERSION = "0.01";
public static void main(String[] args) {
System.out.println("fish simulation version: " + VERSION + "\n\n");
System.out.println("initialazing simulation");
World.initSim();
JFrame win = new JFrame();
win.setResizable(false);
win.setUndecorated(true);
win.setVisible(true);
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
win.setPreferredSize(d);
win.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
MainPanel.SCR_HEIGHT = d.height;
MainPanel.SCR_WIDTH = d.width;
MainPanel dp = new MainPanel(win);
win.addKeyListener(dp.mainMenu);
win.addMouseListener(dp);
win.add(dp);
win.pack();
System.out.println("-- ready --");
}
}